package org.apache.flink;

import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

import java.util.Arrays;

public class BasicApp {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();

        env.setParallelism(1).fromCollection(Arrays.asList(1,2,3,4,5)).filter(x->x>1).print();

        env.execute("app1");
    }
}
